package io.renren.service;

import io.renren.entity.BookVideo;
import io.renren.entity.dto.MenuBookVideoDto;
import io.renren.entity.vo.BookVideo4Show;

import java.util.List;
import java.util.Map;

/**
 * 教辅书视频表
 *
 * @author Wayne Wang
 * @email dujc1018@gmail.com
 * @date 2018-07-23 10:48:07
 */
public interface BookVideoService {

    BookVideo queryObject(Long id);

    Map<Long, Map<Long, List<MenuBookVideoDto>>> getSubjectVersionVideoMap(Long gradeId);

    List<BookVideo> queryList(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);

    List<BookVideo> queryList4Query(Map<String, Object> map);

    int queryTotal4Query(Map<String, Object> map);

    List<BookVideo4Show> queryList4ListQuery(Map<String, Object> map);

    int queryTotal4ListQuery(Map<String, Object> map);

    void save(BookVideo bookVideo);

    void saveBatch(List<BookVideo> bookVideoList);

    void update(BookVideo bookVideo);

    void delete(Long id);

    void deleteBatch(Long[] ids);

    void updateBatch(List<BookVideo> bookVideoList);
}
